package com.question_barrier.repository;

import com.question_barrier.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserRepository extends JpaRepository<User,Long>{

    User findByOpenId(String openId);

    boolean existsByOpenId(String openId);

}
